package org.yylnb.openplatform.monitor.service.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @author RainLin
 * @date 2020/8/3 - 19:19
 */
@FeignClient("OPENAPI-SEARCH")
public interface SearchService {

    @RequestMapping("/search/searchlog")
    List<Map> searchLog(@RequestParam("jsonParam") String jsonParam);


    @RequestMapping("/search/count")
    Long getCount(@RequestParam("jsonParam") String jsonParam);

    @GetMapping("/search/statavg")
    public Map<String, Integer> statAvg(@RequestParam("receiveStartTime") String receiveStartTime, @RequestParam("receiveEndtTime") String receiveEndtTime);
}
